import request from '@/utils/request'

// 查询学年管理列表
export function listSchoolyear(query) {
  return request({
    url: '/org/schoolyear/list',
    method: 'get',
    params: query
  })
}

// 查询学年管理详细
export function getSchoolyear(id) {
  return request({
    url: '/org/schoolyear/' + id,
    method: 'get'
  })
}

// 新增学年管理
export function addSchoolyear(data) {
  return request({
    url: '/org/schoolyear',
    method: 'post',
    data: data
  })
}

// 修改学年管理
export function updateSchoolyear(data) {
  return request({
    url: '/org/schoolyear',
    method: 'put',
    data: data
  })
}

// 删除学年管理
export function delSchoolyear(id) {
  return request({
    url: '/org/schoolyear/' + id,
    method: 'delete'
  })
}

// 导出学年管理
export function exportSchoolyear(query) {
  return request({
    url: '/org/schoolyear/export',
    method: 'get',
    params: query
  })
}